/**
 * <pre>
 * @(#)ConfigPanel.java 1.00 2009-11-12
 * 
 * Copyright (c) 1998, 2009 Regular Individual. All rights reserved.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *    http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * Contributor(s):
 *     Haixu Huang
 * </pre>
 **/
package _test_;

import java.awt.Color;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JComboBox;
import javax.swing.JPanel;

import cn.sh.huang.chart.ext.enumtype.Amplitude;

/**
 * <pre>
 * ConfigPanel ...
 * 
 * @version 1.0
 * </pre>
 */
public class ConfigPanel extends JPanel
{
    private static final Object[] amplitudes = { Amplitude.FULL, Amplitude.ALMOST, Amplitude.HALF, Amplitude.THIN };
    JComboBox cmbAmplitude;

    public ConfigPanel()
    {
        super(new GridBagLayout());
        cmbAmplitude = new JComboBox(amplitudes);
        cmbAmplitude.setBackground(Color.WHITE);
        add(cmbAmplitude, new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.CENTER,
            GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));

    }
}
